package com.meritdata.cloud.data.service.development.model; /***********************************************************************
 * Module:  TD_DATA_API.java
 * Author:  Lenovo
 * Purpose: Defines the Class TD_DATA_API
 ***********************************************************************/

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "TD_DATA_API")
public class DataApi {
    /**
     * ID:ID
     */
    @Id
    @GeneratedValue
    private Long id;
    /**
     * 分组ID:CATEGORY_ID
     */
    @Column(name = "CATEGORY_ID")
    private String categoryId;
    /**
     * API名称:NAME
     */
    @Column(name = "NAME")
    private String name;
    /**
     * API地址:URL
     */
    @Column(name = "URL")
    private String url;
    /**
     * API描述:DESCRIPTION
     */
    @Column(name = "DESCRIPTION", length = 1000)
    private String description;
    /**
     * 请求方式:GET,POST
     */
    /**
     * 请求方式:TYPE
     */
    @Column(name = "TYPE")
    private String type;

    /**
     * table,sql
     * <p>
     * API实现类型:IMPL_TYPE
     */
    @Column(name = "IMPL_TYPE")
    private String implType;
    /**
     * 创建时间:CREATE_TIME
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;
    /**
     * 修改时间:UPDATE_TIME
     */
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    /**
     * 创建人ID:CREATOR
     */
    @Column(name = "CREATOR")
    private String creator;
    /**
     * 修改人ID:REVISER_ID
     */
    @Column(name = "REVISERID")
    private String reviserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
    public void setCategoryId(String categoryId){
        this.categoryId = categoryId;
    }
    public String getCategoryId(){
        return categoryId;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImplType() {
        return implType;
    }

    public void setImplType(String implType) {
        this.implType = implType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getReviserId() {
        return reviserId;
    }

    public void setReviserId(String reviserId) {
        this.reviserId = reviserId;
    }
}